package org.jeecg.modules.online.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;

@TableName("onl_auth_data")
@Data
public class OnlAuthData implements Serializable {
    private static final long serialVersionUID = 1;
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    //online表ID
    private String cgformId;
    //规则名
    private String ruleName;
    //规则列
    private String ruleColumn;
    //规则条件 大于小于like
    private String ruleOperator;
    //规则值
    private String ruleValue;
    //1有效 0无效
    private Integer status;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date createTime;
    private String createBy;
    private String updateBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date updateTime;

    public OnlAuthData setId(String id) {
        this.id = id;
        return this;
    }

    public OnlAuthData setCgformId(String cgformId) {
        this.cgformId = cgformId;
        return this;
    }

    public OnlAuthData setRuleName(String ruleName) {
        this.ruleName = ruleName;
        return this;
    }

    public OnlAuthData setRuleColumn(String ruleColumn) {
        this.ruleColumn = ruleColumn;
        return this;
    }

    public OnlAuthData setRuleOperator(String ruleOperator) {
        this.ruleOperator = ruleOperator;
        return this;
    }

    public OnlAuthData setRuleValue(String ruleValue) {
        this.ruleValue = ruleValue;
        return this;
    }

    public OnlAuthData setStatus(Integer status) {
        this.status = status;
        return this;
    }

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    public OnlAuthData setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public OnlAuthData setCreateBy(String createBy) {
        this.createBy = createBy;
        return this;
    }

    public OnlAuthData setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
        return this;
    }

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    public OnlAuthData setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }

}
